package com.laozhao.deliveryManager.view.delivery;

import com.laozhao.deliveryManager.zgui.ZPanel;
import java.awt.BorderLayout;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import java.awt.GridLayout;
import javax.swing.JLabel;
import javax.swing.JComboBox;
import java.awt.FlowLayout;
import javax.swing.JTextField;
import javax.swing.SwingConstants;
import java.awt.Component;
import javax.swing.Box;
import javax.swing.JButton;

public class DelieverListPanel extends ZPanel {
	private JTable table;
	private JTextField textField;
	public DelieverListPanel() {
		setLayout(new BorderLayout(0, 0));
		
		JPanel searchPanel = new JPanel();
		add(searchPanel, BorderLayout.NORTH);
		searchPanel.setLayout(new GridLayout(1, 1, 0, 0));
		
		JPanel panel = new JPanel();
		searchPanel.add(panel);
		panel.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 5));
		
		JLabel customerLab = new JLabel("客户");
		panel.add(customerLab);
		
		JComboBox comboBox = new JComboBox();
		panel.add(comboBox);
		
		JLabel sendNoLab = new JLabel("送货单号码");
		panel.add(sendNoLab);
		
		textField = new JTextField();
		panel.add(textField);
		textField.setColumns(10);
		
		JLabel lblNewLabel_2 = new JLabel("New label");
		panel.add(lblNewLabel_2);
		lblNewLabel_2.setHorizontalAlignment(SwingConstants.LEFT);
		
		JComboBox comboBox_1 = new JComboBox();
		panel.add(comboBox_1);
		
		Component horizontalGlue = Box.createHorizontalGlue();
		panel.add(horizontalGlue);
		
		JButton button = new JButton("查询");
		panel.add(button);

		table = new JTable();
		
		JScrollPane tablePanel = new JScrollPane(table);
		add(tablePanel, BorderLayout.CENTER);
		
	}

}
